package com.sdruixinggroup.mondayb2b.ui.Activities;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;

import com.sdruixinggroup.mondayb2b.R;
import com.sdruixinggroup.mondayb2b.ui.MainActivity;
import com.sdruixinggroup.mondayb2b.utils.UserInfoUtil;

/**
 * Created by 00029935 on 2017/12/8.
 */

public class WelcomeActivity extends FragmentActivity {

    private Handler handler = new Handler(){
        @Override
        public void handleMessage(Message msg) {
            super.handleMessage(msg);
          //  Boolean isLogin = UserInfoUtil.getIsLogin(getApplicationContext());
            Intent intent = new Intent();
            intent.setClass(getBaseContext(), MainActivity.class);
            startActivity(intent);
            finish();
        }
    };

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.welcome_activity);

        handler.sendEmptyMessageDelayed(1,3000);

    }
}
